package com.igeek.compus.test.notice.service;

import com.igeek.compus.test.menu.entity.Menu;
import com.igeek.compus.test.notice.entity.Notice;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.util.List;

public interface NoticeService {

    List<Notice> getNoticeListByPage(Notice notice);


    int getNoticeListCount(Notice notice);

    /**
     * 通过id获得菜单信息
     * @param id
     * @return
     */
    Notice getNoticeInfoById(Integer id);


    int deleteNoticeById(Notice notice);

    int deleteNoticeList(@Param("noticeIdList") List<String> noticeIdList);


    int addNotice(Notice notice);


    int updateNotice(Notice notice);

    /**
     *
     * @param noticeList
     * @return
     */
    HSSFWorkbook noticeExport(String[] titles, List<Notice> noticeList);
}
